
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.setInterval("showtime()");
			function showtime(){
				var date=new Date();
				var year=date.getFullYear();
				var month=date.getMonth()+1;
				var day=date.getDate();
				var hh=date.getHours();
				var mi=date.getMinutes();
				var ss=date.getSeconds();
				var wk="星期"+"日一二三四五六".charAt(date.getDay());
				document.getElementById("div1").innerHTML=year+"年"+month+"月"+day+"日"+" "+hh+":"+mi+":"+ss+" "+wk;
				// time=year+"-"+month+"-"+day+" "+hh+":"+mi+":"+ss+" ";
				// return time;
			}
		</script>
	</head>
	<body>
		<div id="div1">

		</div>
	</body>
</html>
